package com.dev.toolkit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @date 2024-04-27 21:53
 * @description 实体属性配置表
 */
@Data
@TableName(value = "tk_entity_property_config")
public class EntityPropertyConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 属性名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 字段注释
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 数据类型
     */
    @TableField(value = "data_type")
    private String dataType;

    /**
     * 包路径
     */
    @TableField(value = "pkg_name")
    private String pkgName;

    /**
     * 属性名称的拼音首字母
     */
    @TableField(value = "pinyin")
    private String pinyin;

    /**
     * JsonIgnore注解
     */
    @TableField(value = "json_ignore")
    private String jsonIgnore;

    /**
     * JsonFormat注解
     */
    @TableField(value = "json_format")
    private String jsonFormat;

    /**
     * 导出Excel注解
     */
    @TableField(value = "excel_export")
    private String excelExport;
}